#{extends 'main.html' /}

#{form @Tasks.assignDeveloperToTaskAction()}
#{if freeTasks.isEmpty()}
There are no Tasks available
#{/if}
#{else}
	<select name = "userId" >
	#{list items:devInProject, as:'developer'}
	<option  value = ${developer.getEntityId()}>${developer.firstName} ${developer.lastName} <option><br/> 
		#{/list}
		</select>
		
	<select name = "taskId" >
	<br/>
	<br/>
	#{list items:freeTasks, as:'Task'}
	<option  value = ${Task.getEntityId()}>${Task.description} <option><br/> 
		#{/list}
</select>
	<br/>
	<br/>


<input type="submit" name="submit"  id="submit_btn" value="Submit" />
#{/else}
#{/form}